package cn.b.sky.mes.cm.dao;

import java.util.List;

import cn.b.sky.mes.cm.model.ProcessAttachment;

public interface ProcessAttachmentDao {
  /**
   * 
   * <strong>Title : selectProcessAttachmentByProcessOperationId<br></strong>
   * <strong>Description : </strong>获取工艺工序的附件列表<br> 
   * <strong>Create on : 2015-9-29 下午4:58:37<br></strong>
   * <p>
   * @param id
   * @return
   * List<ProcessAttachment>
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public List<ProcessAttachment> selectProcessAttachmentByProcessOperationId(Integer id);

  /**
   * 
   * <strong>Title : selectProcessAttachmentById<br></strong>
   * <strong>Description : </strong>通过id查询附件<br> 
   * <strong>Create on : 2015-12-25 下午1:51:14<br></strong>
   * <p>
   * @param id
   * @return
   * ProcessAttachment
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public ProcessAttachment selectProcessAttachmentById(Long id);

  /**
   * 
   * <strong>Title : insertProcessAttachment<br></strong>
   * <strong>Description : </strong>保存工艺工序附件<br> 
   * <strong>Create on : 2015-9-29 下午4:58:53<br></strong>
   * <p>
   * @param attachment
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void insertProcessAttachment(ProcessAttachment attachment);

  /**
   * 
   * <strong>Title : deleteProcessAttachmentById<br></strong>
   * <strong>Description : </strong>删除工艺工序附件<br> 
   * <strong>Create on : 2015-12-25 下午1:54:44<br></strong>
   * <p>
   * @param id
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteProcessAttachmentById(Long id);

  /**
   * 
   * <strong>Title : deleteProcessAttachmentByProcessOperationId<br></strong>
   * <strong>Description : </strong>删除工艺工序附件，删除工艺工序时使用<br> 
   * <strong>Create on : 2015-9-29 下午4:59:31<br></strong>
   * <p>
   * @param id
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteProcessAttachmentByProcessOperationId(Integer id);

}
